package com.my.serviceimpl;

import com.my.bean.*;
import com.my.mapper.AlreadyAppointmentMapper;
import com.my.service.AlreadyAppointmentService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 已经预约产康项目安排 服务实现类
 * </p>
 *
 * @author 冯政尚
 * @since 2018-08-26
 */
@Service
public class AlreadyAppointmentServiceImpl extends ServiceImpl<AlreadyAppointmentMapper, AlreadyAppointment> implements AlreadyAppointmentService {

    //baseMap是mybatis封装的一个mapper直接调用就行你用在注入mapper了
    //查询
    public  List<AlreadyAppointment> selectResult(boolean admin){
        return  baseMapper.selectResultMap( admin);
    }

    //查询房间id
    public List<AlreadyAppointment> selectHomeId(boolean admin){
        return baseMapper.selectResultMap(admin);
    }

    //根据id查询
    public List<AlreadyAppointment> selectHomeById(Long id,boolean admin){
        return baseMapper.selectHomeById(id,admin);
    }



}
